package com.winit.openapi.isp.vo;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;

/**
 * 更新提货单地址
 * 
 * @author jiaohua.wu
 */
public class UpdatePickUpOrderAddr {

    // 提货地址id
    @NotNull(message = "{02010250001}")
    @Digits(integer = 11, fraction = 0, message = "{02010250002}")
    private Long   pickupAddressID;

    // 国家
    @Digits(integer = 11, fraction = 0, message = "{02010250002}")
    private Long   countryID;

    // 省
    @Digits(integer = 11, fraction = 0, message = "{02010250002}")
    private Long   provinceID;

    // 城市
    @Digits(integer = 11, fraction = 0, message = "{02010250002}")
    private Long   cityID;

    // 提货地址
    @Length(min = 0, max = 128, message = "{02010250002}")
    private String pickupAddress;

    // 电子邮箱
    @Length(min = 0, max =60, message = "{02010250002}")
    @Email(message = "{02010250003}")
    private String email;

    // 联系人
    @Length(min = 0, max = 32, message = "{02010250002}")
    private String contact;

    // 联系人电话
    @Length(min = 0, max = 32, message = "{02010250002}")
    private String phoneNo;

    // 邮编
    @Length(min = 0, max = 32, message = "{02010250002}")
    private String zipCode;

    public Long getPickupAddressID() {
        return pickupAddressID;
    }

    public void setPickupAddressID(Long pickupAddressID) {
        this.pickupAddressID = pickupAddressID;
    }

    public String getPickupAddress() {
        return pickupAddress;
    }

    public void setPickupAddress(String pickupAddress) {
        this.pickupAddress = pickupAddress;
    }

    public Long getCountryID() {
        return countryID;
    }

    public void setCountryID(Long countryID) {
        this.countryID = countryID;
    }

    public Long getProvinceID() {
        return provinceID;
    }

    public void setProvinceID(Long provinceID) {
        this.provinceID = provinceID;
    }

    public Long getCityID() {
        return cityID;
    }

    public void setCityID(Long cityID) {
        this.cityID = cityID;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

}
